﻿package com.alstudio.view.tableview;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.loovee.imaohu.R;

public class LocationItem extends RelativeLayout {

	public TextView mLocation;
	public ImageView mJumper;

	private LayoutInflater inflater;
	private Context context;

	public LocationItem(Context context) {
		super(context);
		this.context = context;
		init();
//		setBackgroundResource(R.drawable.background_view_rounded_middle);
	}

	private void init() {
		inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.location_item, this);
		mJumper = (ImageView) findViewById(R.id.jumper);
		mLocation = (TextView) findViewById(R.id.location);
	}

}
